<?php

namespace app\api\home;
use think\Db;

use app\common\controller\Common;

class ImCallbackController extends Common
{
    /**
     * Notes:回调处理
     * User: tangfen
     * Date: 2024/1/4
     * Time: 12:08
     */
    public function imCallBack()
    {

        $data = file_get_contents('php://input');

        $data = ['name' => $data];
        Db::name('test')->insert($data);

        redis()->set('imCallBack' . date('Y-m-d H:i:s'), json_encode($data,true));
//
//        return 'true';
    }


}